package learn.limiters;

public abstract class Limiter {

    final int qps;

    public Limiter(int qps) {
        this.qps = qps;
    }

    /**
     * 获取继续执行的资格，立刻返回成功或失败
     * @return
     */
    public abstract boolean tryAcquire();
}
